import {
	createRouter,
	createWebHistory
} from 'vue-router'
import Index from '@/views/Index.vue'
import BusinessList from '@/views/BusinessList.vue'
import BusinessInfo from '@/views/BusinessInfo.vue'
import Login from '@/views/Login.vue'
import Orders from '@/views/Orders.vue'
import UserAddress from '@/views/UserAddress.vue'
import Payment from '@/views/Payment.vue'
import OrderList from '@/views/OrderList.vue'
import AddUserAddress from '@/views/AddUserAddress.vue'
import EditUserAddress from '@/views/EditUserAddress.vue'
import Register from '@/views/Register.vue'
import UserInformation from '@/views/UserInformation.vue'
import CartList from '@/views/CartList.vue'
import BusinessManagement from '@/views/BusinessManagement.vue'
import BusinessLogin from '@/views/BusinessLogin.vue'
import BusinessRegister from '@/views/BusinessRegister.vue'
import SuperVIPInfo from '@/views/SuperVIPInfo.vue'
import EditBusinessInfo from '@/views/EditBusinessInfo.vue'
import AddFood from '@/views/AddFood.vue'
import EditFood from '@/views/EditFood.vue'
import UserWallet from '@/views/UserWallet.vue'
import StudentLogin from '@/views/StudentLogin.vue'
import TJUBusinessList from '@/views/TJUBusinessList.vue'
import TJUBusinessInfo from '@/views/TJUBusinessInfo.vue'
import TJUOrders from '@/views/TJUOrders.vue'
import TJUCartList from '@/views/TJUCartList.vue'
import TJUPayment from '@/views/TJUPayment.vue'
import EditUserInfo from '@/views/EditUserInfo.vue'
import VIPIndex from '@/views/VIPIndex.vue'
import SearchBusinessList from '@/views/SearchBusinessList.vue'

const router = createRouter({
	history: createWebHistory(
		import.meta.env.BASE_URL),
	routes: [{
			path: '/',
			name: 'Home',
			component: Index
		},
		{
			path: '/index',
			name: 'Index',
			component: Index
		},
		{
			path: '/businessList',
			name: 'BusinessList',
			component: BusinessList
		},
		{
			path: '/businessInfo',
			name: 'BusinessInfo',
			component: BusinessInfo
		},
		{
			path: '/login',
			name: 'Login',
			component: Login
		},
		{
			path: '/orders',
			name: 'Orders',
			component: Orders
		},
		{
			path: '/userAddress',
			name: 'UserAddress',
			component: UserAddress
		},
		{
			path: '/payment',
			name: 'Payment',
			component: Payment
		},
		{
			path: '/orderList',
			name: 'OrderList',
			component: OrderList
		},
		{
			path: '/addUserAddress',
			name: 'AddUserAddress',
			component: AddUserAddress
		},
		{
			path: '/editUserAddress',
			name: 'EditUserAddress',
			component: EditUserAddress
		},
		{
			path: '/register',
			name: 'Register',
			component: Register
		},
		{
			path: '/userInformation',
			name: 'UserInformation',
			component: UserInformation
		},
		{
			path: '/cartList',
			name: 'CartList',
			component: CartList
		},
		{
			path: '/businessManagement',
			name: 'BusinessManagement',
			component: BusinessManagement
		},
		{
			path: '/businessRegister',
			name: 'BusinessRegister',
			component: BusinessRegister
		},
		{
			path: '/businessLogin',
			name: 'BusinessLogin',
			component: BusinessLogin
		},
		{
			path: '/superVIPInfo',
			name: 'SuperVIPInfo',
			component: SuperVIPInfo
		},
		{
			path: '/editBusinessInfo',
			name: 'EditBusinessInfo',
			component: EditBusinessInfo
		},
		{
			path: '/addFood',
			name: 'AddFood',
			component: AddFood
		},
		{
			path: '/editFood',
			name: 'EditFood',
			component: EditFood
		},
		{
			path: '/userWallet',
			name: 'UserWallet',
			component: UserWallet
		},
		{
			path: '/studentLogin',
			name: 'StudentLogin',
			component: StudentLogin
		},
		{
			path: '/tJUBusinessList',
			name: 'TJUBusinessList',
			component: TJUBusinessList
		},
		{
			path: '/tJUBusinessInfo',
			name: 'TJUBusinessInfo',
			component: TJUBusinessInfo
		},
		{
			path: '/tJUOrders',
			name: 'TJUOrders',
			component: TJUOrders
		},
		{
			path: '/tJUCartList',
			name: 'TJUCartList',
			component: TJUCartList
		},
		{
			path: '/tJUPayment',
			name: 'TJUPayment',
			component: TJUPayment
		},
		{
			path: '/editUserInfo',
			name: 'EditUserInfo',
			component: EditUserInfo
		},
		{
			path: '/vIPIndex',
			name: 'VIPIndex',
			component: VIPIndex
		},
		{
			path: '/searchBusinessList',
			name: 'SearchBusinessList',
			component: SearchBusinessList
		}
		//继续更新路径
	]
})



export default router
